package com.jian.mall.sevice;

import com.jian.mall.common.redis.User;
import com.jian.mall.vo.AddToCartInfo;
import com.jian.mall.vo.CartItem;
import com.jian.mall.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {
    void addToCart(AddToCartInfo cartInfo) throws ExecutionException, InterruptedException;

    CartVo getAllCartInfo(User info);

    void cleanCart();

    void updateCartItem(CartItem cartItem);

    void deleteByCartSkuId(Long cartId);

    void deleteByCartSkuIds(List<Long> skuIds);

    List<CartItem> getSelective();
}
